◊ Global Search is a small utility that lets you search for an hexadecimal or character string in all the resources of a file. It generates a text file named "xxx.scan" (where xxx is the name of the searched file) with a log of all the matches that have been found. Each match is shown in the form:
[RES TYPE] [RES ID] "[RES NAME]" $[OFFSET]
where [offset] is the offset in bytes from the beginning of the resource.
◊ Global Search was written for all ResEdit users (such as myself) who miss a global "Find Hex" command.
• Options
◊ The main dialog lets you configure the search as follows:
- [HEX/ASCII] switches between an hexadecimal and a character search;
- [ALL RES/RES TYPE] search all resource types or just the chosen one;
- [ALL MATCHES/FIRST MATCH] find all matches or stop at the first one;
- [CREATOR] text file creator (i.e. 'ttxt', 'MSWD') for the scan log;
- [TAB SIZE] number of spaces in a tab (proportional tabs only);
- [SPACES/PROPORTIONAL/SINGLE] different formats for text alignment;
- [SCAN FILE] select a file to search and start scanning it…
• Note
◊ I haven't spent much time in drawing error dialogs - all errors should be handled correctly, but what you'll see may be somewhat confusing. If you choose "Cancel" in the standard open file dialog, for example, Global Search will inform you that it hasn't found any matches. Any error, including starting the search without a valid hex or ASCII string in the "Search for" edit field, will lead to the same no-info error message.
◊ If anyone out there uses this app and needs more error reporting, just let me know and I'll fix it.
• Version history
◊ 1.0.4 - Now freeware, updated documentation.
◊ 1.03 - Minor fixes.
◊ 1.02 - A bug which caused random words to appear at the end of the list has been fixed.
◊ 1.01 - A minor layout problem with single tabs has been fixed.
◊ All online services and bulletin boards may make it available to their users at no charge other than the normal connection fees.
◊ All non-profit user groups may distribute it at no charge.
◊ All magazines may publish it on floppy disk or CD-ROM without asking me first, as long as I get a copy of the issue containing my software.
◊ All CD-ROM shareware collections and CD-ROM magazines may include it without my prior consent, as long as I get either a copy of the CD-ROM or an offer to buy the CD-ROM at a discounted price.
◊ All redistribution companies such as Pacific HiTech, AMUG, Celestin or Educorp may distribute it, as long as I get a copy of each media containing my software and a catalog of the company’s offerings (where applicable).
◊ You may find the latest version of all my shareware and freeware programs by anonymous ftp to ftp.alpcom.it, inside the /software/mac/LMontalcini directory. The ALM Share and ALM Free packages, which contain most of my stuff and can be registered at a very low price, are also available there.
• Disclaimer
◊ This software should never cause any damage, but you’re using it at your own risk. As an independent software developer, I can make no warranties whatsoever on it.
• Have fun!
◊ And don’t forget to register your shareware, so that more cool inexpensive utilities can see the light in the future.